<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
   <head>
        <title>Pagina Inicial EPA</title>
    </head>
   
   <h:body>
       <h:panelGrid width="1000" border="2" >
          <img src="../resource/bannerEpa.jpg" align="center" style="left:50px" width="900" height="100" alt="bannerEpa"/>
        </h:panelGrid>
        <h:panelGrid columns="2" cellpadding="0" cellspacing="0">
            <h:panelGrid border="2" columns="2" width="200" bgcolor="#FFFFCC">
             <h:form>
                 <h:panelGrid columns="1">
                     <h:outputText value="Seja Bem vindo ao EPA"/><br/>
                 <h:panelGrid columns="2">
                     <h:outputText value="Nome: "/>
                     <h:outputText value="#{database.init}"/>
                     <h:outputText value="#{EPAControle.init}"/>
                     <h:inputText value="#{loginControle.inputName}" />
                     <h:outputText value=""/>
                     <h:commandButton value="Logar" action="#{loginControle.actionLogar}"/>
                  </h:panelGrid>
                    <h:outputText style="color : red;" value="#{loginControle.msgErro}"/><br/><br/><br/>
                    <h:commandLink value="Cadastrar no Sistema" action="cadastroUsuario"/>
                 </h:panelGrid>
             </h:form>
         </h:panelGrid>

        </h:panelGrid>
    </h:body>
</html>